<?
		session_start();

		if ($_GET['auth']) {
			include(TEMPLATEPATH . '/inc/confirma.php');
		}
		if ($_POST['salva-cadastro']) {
			include(TEMPLATEPATH . '/inc/salva-cadastro.php');
		}
		if ($_POST['senha'] && $_POST['email']) {
			include(TEMPLATEPATH . '/inc/autentica.php');
		}
		if ($_GET['logout']) {
			include(TEMPLATEPATH . '/inc/logout.php');
		}
		include(TEMPLATEPATH . '/inc/carrinho.php');
?>
<!DOCTYPE html>
<html <? language_attributes(); ?>>
	<head>
		<title><? wp_title('|', true, 'right'); ?></title>
		<meta charset="<? bloginfo('charset'); ?>" />
		<meta name="viewport" content="width=device-width" />
		<link rel="profile" href="http://gmpg.org/xfn/11" />
		<link rel="stylesheet" type="text/css" media="all" href="<? bloginfo('stylesheet_url'); ?>" />
		<link rel="pingback" href="<? bloginfo('pingback_url'); ?>" />
		<link href='http://fonts.googleapis.com/css?family=Concert+One' rel='stylesheet' type='text/css'>
		<link href='http://fonts.googleapis.com/css?family=Sintony' rel='stylesheet' type='text/css'>
		<? wp_head(); ?>

	</head>

	<body>
		<div id="barraUser">
			<div class="data">

				<?
						if (get_user_info('id')) {
							?>

							<b><?= get_user_info('nome'); ?></b> 
							<a href='/?logout=1'>(sair)</a> | 
							<a href='/atendimento'>Atendimento</a> |
							<a href='/pedidos'>Pedidos</a> |
							<a href='/meu-cadastro'>Meu cadastro</a> |
							<a href='/carrinho'>Carrinho</a> 
<!--							<a href='/contato'>Contato</a>-->

							<?
						} else {
							?>

							Faça <a href="/cadastro">login</a> ou <a href="/cadastro">cadastre-se</a>

							<?
						}
				?>


			</div>
		</div>
		<div id="page">
			<div id="header">
				<div class="logo left">
					<a href="<?= get_bloginfo('url'); ?>">
						<img src="<?= get_bloginfo('template_url') . '/img/logo_1.png' ?>" border="0" />
					</a>
				</div>
				<div class="buscar left">
					<form action='/' method="GET">
						<input type='text' name='s'><input type='button' name='buscar' value='buscar' id='buscar'>
					</form>
				</div>

				<div class="carrinho right">
					<div class="titulo"><a href="/carrinho">Meu Carrinho</a></div>
					<div class="linha"></div>
					<div class="group">
						<div class="subtext left">Produto<?= count($_SESSION['produtos']) > 1 ? 's' : ''; ?></div>
						<div class="subtext right"><?= count($_SESSION['produtos']); ?></div>
						<div class="cls"></div>
					</div>
					<div class="group">
						<div class="subtext left">Subtotal</div>
						<div class="subtext right">R$ <?= number_format($valor_total_pedido, 2, ',', '.'); ?></div>
						<div class="cls"></div>
					</div>
					<!--					<div class="linha"></div>-->
					<!--					<div class="group">
											<div class="subtext right"><a href="#">Fechar Pedido</a></div>
										</div>-->
				</div>
				<div class="cls"></div>
			</div>
			<div class="cls"></div>
			<div id="faixa">
				<?php
						// SETUP
						$args = array(
							'menu' => 'Header', // Menu type pages | categories | menuID | menu name
							'exclude' => '21,35,438', // IDs of pages to be excluded
							'login' => false, // Display login/logout link?
							'admin' => false, // Show site admin link?
							'vertical' => false, // Display vertical?
							'home' => false, // Display home link?
							'align' => 'center', // Align left | center | right
								//'width' => '500'   // Width of menu
						);
						// CREATE
						shailan_dropdown_menu($args);
				?>
				<?php //shailan_dropdown_menu(); ?>
			</div>

			<div id="main">

				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td>
							<br />
							<center>
							<a href="/romannel/">
								<?
								echo get_the_post_thumbnail('405', 'full');		
								?>
<!--								<img src="<?= get_bloginfo('template_url') . '/img/banner_rommanel.jpg' ?>" border="0" />-->
							</a>
							</center>
						</td>
					</tr>
					<tr>
<!--						<td class="td_menu">
							<div id="menu">
								<div class="menu_header">
									Categorias
								</div>
								<div class="menu_main">
									<ul>
						<?
								$args = array(
									'show_option_all' => '',
									'orderby' => 'name',
									'order' => 'ASC',
									'style' => 'list',
									'show_count' => 0,
									'hide_empty' => 0,
									'use_desc_for_title' => 1,
									'child_of' => 0,
									'feed' => '',
									'feed_type' => '',
									'feed_image' => '',
									'exclude' => '',
									'exclude_tree' => '',
									'include' => '',
									'hierarchical' => true,
									'title_li' => '',
									'show_option_none' => false,
									'number' => null,
									'echo' => 1,
									'depth' => 0,
									'current_category' => 1,
									'pad_counts' => 0,
									'taxonomy' => 'category',
									'walker' => null
								);
								wp_list_categories($args);
						?>
									</ul>
								</div>
							</div>
						</td>-->

